package org.dromara.canteen.domain.bo;

import org.dromara.canteen.domain.CanteenEmployee;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 从业人员管理业务对象 canteen_employee
 *
 * @author Gjb
 * @date 2025-07-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CanteenEmployee.class, reverseConvertGenerate = false)
public class CanteenEmployeeBo extends BaseEntity {

    /**
     * 人员id
     */

    private Long employeeId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 性别
     */
    @NotNull(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sex;

    /**
     * 证件号码
     */
    @NotBlank(message = "证件号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardId;

    /**
     * 岗位
     */
    @NotBlank(message = "岗位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String post;

    /**
     * 健康证照片
     */
    @NotBlank(message = "健康证照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hc;

    /**
     * 健康证编号
     */
    @NotBlank(message = "健康证编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hcNumber;

    /**
     * 健康证有效期
     */
    @NotBlank(message = "健康证有效期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hcValidity;

    /**
     * 培训证等级
     */
    @NotBlank(message = "培训证等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tcLevel;

    /**
     * 培训证有效期
     */
    @NotBlank(message = "培训证有效期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tcValidity;

    /**
     * 校区id
     */
    private Long schoolCampusId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contact;
}
